// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import iView from 'iview'
import i18n from '@/locale'
import config from '@/config'
import importDirective from '@/directive'
import { directive as clickOutside } from 'v-click-outside-x'
import installPlugin from '@/plugin'
import './index.less'
import '@/assets/icons/iconfont.css'
import TreeTable from 'tree-table-vue'
import VOrgTree from 'v-org-tree'
import 'v-org-tree/dist/v-org-tree.css'
// 实际打包时应该不引入mock
/* eslint-disable */
if (process.env.NODE_ENV !== 'production') require('@/mock')

Vue.use(iView, {
  i18n: (key, value) => i18n.t(key, value)
})
Vue.use(TreeTable)
Vue.use(VOrgTree)
/**
 * @description 注册admin内置插件
 */
installPlugin(Vue)
/**
 * @description 生产环境关掉提示
 */
Vue.config.productionTip = false
/**
 * @description 全局注册应用配置
 */
Vue.prototype.$config = config
Vue.prototype.testData = [
	{id:1,name:'王芳',sex:'女',age:'23',shengri:'1990-03-05',mobile:'13888288888',idcard:'130121199003032335',ishun:'是',isdang:'是',istui:'是',status:'在职',parentName:'王博',parentsex:'男',parentage:'50',childName:'武强',childsex:'男',childage:'5',rztime:'2015-01-01'},
	{id:2,name:'王博',sex:'男',age:'30',shengri:'1989-11-13',idcard:'130121199003032335',ishun:'是',mobile:'13888284269',isdang:'是',istui:'是',status:'在职',parentName:'王博',parentsex:'男',parentage:'50',childName:'武强',childsex:'男',childage:'5',rztime:'2015-01-01'},
	{id:3,name:'王宏宇',sex:'男',age:'26',shengri:'1989-03-21',idcard:'130121199003032335',ishun:'否',mobile:'13888288768',isdang:'是',istui:'是',status:'在职',parentName:'王博',parentsex:'男',parentage:'50',childName:'武强',childsex:'男',childage:'5',rztime:'2015-01-01'},
	{id:4,name:'孙明明',sex:'男',age:'22',shengri:'1989-03-18',idcard:'130121199003032335',ishun:'是',mobile:'13888289879',isdang:'是',istui:'是',status:'在职',parentName:'王博',parentsex:'男',parentage:'50',childName:'武强',childsex:'男',childage:'5',rztime:'2015-01-01'},
	{id:5,name:'武强',sex:'男',age:'28',shengri:'1989-03-30',idcard:'130121199003032335',ishun:'否',mobile:'13888280010',isdang:'是',istui:'是',status:'在职',parentName:'王博',parentsex:'男',parentage:'50',childName:'武强',childsex:'男',childage:'5',rztime:'2015-01-01'},
	{id:6,name:'德泽',sex:'女',age:'23',shengri:'1990-03-03',mobile:'13888287530',idcard:'130121199003032335',ishun:'是',isdang:'是',istui:'是',status:'在职',parentName:'王博',parentsex:'男',parentage:'50',childName:'武强',childsex:'男',childage:'5',rztime:'2015-01-01'},
	{id:7,name:'昌翰',sex:'男',age:'30',shengri:'1989-03-03',idcard:'130121199003032335',ishun:'是',mobile:'13888282463',isdang:'是',istui:'是',status:'在职',parentName:'王博',parentsex:'男',parentage:'50',childName:'武强',childsex:'男',childage:'5',rztime:'2015-01-01'},
	{id:8,name:'王宏宇',sex:'男',age:'26',shengri:'1989-03-03',idcard:'130121199003032335',ishun:'否',mobile:'13888289810',isdang:'是',istui:'是',status:'在职',parentName:'王博',parentsex:'男',parentage:'50',childName:'武强',childsex:'男',childage:'5',rztime:'2015-01-01'},
	{id:9,name:'王少华',sex:'男',age:'22',shengri:'1989-03-03',idcard:'130121199003032335',ishun:'是',mobile:'13888283567',isdang:'是',istui:'是',status:'在职',parentName:'王博',parentsex:'男',parentage:'50',childName:'武强',childsex:'男',childage:'5',rztime:'2015-01-01'},
	{id:10,name:'武强',sex:'男',age:'28',shengri:'1989-03-03',idcard:'130121199003032335',ishun:'否',mobile:'13888286060',isdang:'是',istui:'是',status:'在职',parentName:'王博',parentsex:'男',parentage:'50',childName:'武强',childsex:'男',childage:'5',rztime:'2015-01-01'},
	{id:11,name:'王芳',sex:'女',age:'23',shengri:'1990-03-03',mobile:'13888280010',idcard:'130121199003032335',ishun:'是',isdang:'是',istui:'是',status:'在职',parentName:'王博',parentsex:'男',parentage:'50',childName:'武强',childsex:'男',childage:'5',rztime:'2015-01-01'},
	{id:12,name:'王博',sex:'男',age:'30',shengri:'1989-03-03',idcard:'130121199003032335',ishun:'是',mobile:'13888281078',isdang:'是',istui:'是',status:'在职',parentName:'王博',parentsex:'男',parentage:'50',childName:'武强',childsex:'男',childage:'5',rztime:'2015-01-01'},
	{id:13,name:'王宏宇',sex:'男',age:'26',shengri:'1989-03-03',idcard:'130121199003032335',ishun:'否',mobile:'13888283562',isdang:'是',istui:'是',status:'在职',parentName:'王博',parentsex:'男',parentage:'50',childName:'武强',childsex:'男',childage:'5',rztime:'2015-01-01'},
	{id:14,name:'孙明明',sex:'男',age:'22',shengri:'1989-03-03',idcard:'130121199003032335',ishun:'是',mobile:'13888286387',isdang:'是',istui:'是',status:'在职',parentName:'王博',parentsex:'男',parentage:'50',childName:'武强',childsex:'男',childage:'5',rztime:'2015-01-01'},
	{id:15,name:'武强',sex:'男',age:'28',shengri:'1989-03-03',idcard:'130121199003032335',ishun:'否',mobile:'13888287263',isdang:'是',istui:'是',status:'在职',parentName:'王博',parentsex:'男',parentage:'50',childName:'武强',childsex:'男',childage:'5',rztime:'2015-01-01'},

];
Vue.prototype.logData = [
	{name:'王芳',log:'奖励一等奖',yuanyin:'完成任务出色'},
	{name:'曹晶',log:'奖励一等奖',yuanyin:'完成任务出色'},
	{name:'王博',log:'奖励一等奖',yuanyin:'完成任务出色'},
	{name:'王宏宇',log:'奖励一等奖',yuanyin:'完成任务出色'},
	{name:'	孙明明',log:'奖励一等奖',yuanyin:'完成任务出色'},
	{name:'王少华',log:'奖励一等奖',yuanyin:'完成任务出色'},
	{name:'池龙宝',log:'奖励一等奖',yuanyin:'完成任务出色'},
	{name:'王博',log:'奖励一等奖',yuanyin:'完成任务出色'},
	{name:'德泽',log:'奖励一等奖',yuanyin:'完成任务出色'},
	{name:'	王宏宇',log:'奖励一等奖',yuanyin:'完成任务出色'},
	{name:'王芳',log:'奖励一等奖',yuanyin:'完成任务出色'},
	{name:'昌翰',log:'奖励一等奖',yuanyin:'完成任务出色'},
	{name:'王博',log:'奖励一等奖',yuanyin:'完成任务出色'},
	{name:'王宏宇',log:'奖励一等奖',yuanyin:'完成任务出色'},
	{name:'	孙明明',log:'奖励一等奖',yuanyin:'完成任务出色'},
	{name:'王芳',log:'奖励一等奖',yuanyin:'完成任务出色'},
	{name:'曹晶',log:'奖励一等奖',yuanyin:'完成任务出色'},
	{name:'王博',log:'奖励一等奖',yuanyin:'完成任务出色'},
	{name:'王宏宇',log:'奖励一等奖',yuanyin:'完成任务出色'},
	{name:'	孙明明',log:'奖励一等奖',yuanyin:'完成任务出色'},			
];
Vue.prototype.jslogData = [
	{name:'王芳',log:'2019年1月1日晋升副主任'},
	{name:'曹晶',log:'2019年1月1日晋升副主任'},
	{name:'王博',log:'2019年1月1日晋升主任'},
	{name:'武强',log:'2019年1月1日晋升主任'},
	{name:'王宏宇',log:'2019年1月1日晋升副主任'},
	{name:'王芳',log:'2019年1月1日晋升副主任'},
	{name:'池龙宝',log:'2019年1月1日晋升副主任'},
	{name:'王博',log:'2019年1月1日晋升主任'},
	{name:'武强',log:'2019年1月1日晋升主任'},
	{name:'王宏宇',log:'2019年1月1日晋升副主任'},
	{name:'王芳',log:'2019年1月1日晋升副主任'},
	{name:'王博',log:'2019年1月1日晋升副主任'},
	{name:'曹晶',log:'2019年1月1日晋升主任'},
	{name:'王少华',log:'2019年1月1日晋升主任'},
	{name:'王宏宇',log:'2019年1月1日晋升副主任'},
	{name:'王芳',log:'2019年1月1日晋升副主任'},
	{name:'曹晶',log:'2019年1月1日晋升副主任'},
	{name:'王博',log:'2019年1月1日晋升主任'},
	{name:'武强',log:'2019年1月1日晋升主任'},
	{name:'王宏宇',log:'2019年1月1日晋升副主任'},			
];
Vue.prototype.depatementData = [
	{name:'办公室',sort:1},
	{name:'	警务督察科',sort:2},
	{name:'人事训练科',sort:3},
	{name:'宣传科',sort:4},
	{name:'经济犯罪侦查科',sort:5},
	{name:'治安管理科',sort:6},
	{name:'边防管理科',sort:7},
	{name:'刑事侦查科',sort:8},
	{name:'出入境管理科',sort:9},
	{name:'消防科',sort:10},
	{name:'警卫科',sort:11},
	{name:'公共信息网络安全监察科',sort:12},
	{name:'监所管理科',sort:13},
	{name:'交通管理科',sort:14},

]; 
Vue.prototype.levelData = [
	{name:'副主任',sort:1},
	{name:'主任',sort:2},
	{name:'队长',sort:3},
	{name:'科长',sort:4},
	{name:'副局长',sort:5},
	{name:'局长',sort:6},
	{name:'警员',sort:7},
];
Vue.prototype.jsData = [
	{date:'2018年10月1日',type:'晋升',position:'主任'},
	{date:'2018年09月1日',type:'晋升',position:'副主任'},
	{date:'2018年07月28日',type:'晋升',position:'科长'},
	{date:'2018年06月23日',type:'晋升',position:'队长'},
	{date:'2018年07月28日',type:'晋升',position:'科长'},
	{date:'2018年06月23日',type:'晋升',position:'队长'},	

];

Vue.prototype.jfData = [
	{date:'2018年10月1日',type:'奖励',position:'一等功'},
	{date:'2018年09月1日',type:'奖励',position:'三等功'},
	{date:'2018年07月28日',type:'奖励',position:'二等功'},
	{date:'2018年06月23日',type:'奖励',position:'一等功'},
	{date:'2018年07月28日',type:'晋升',position:'科长'},
	{date:'2018年06月23日',type:'晋升',position:'队长'},	

];
/**
 * 注册指令
 */
importDirective(Vue)
Vue.directive('clickOutside', clickOutside)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  i18n,
  store,
  render: h => h(App)
})
